@import '../var.less';

.item {
  color: @default-color;
  font-size: 26px;
  width: calc(50% - 20px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border-radius: 20px;
  background-color: #F9F9F9;
  overflow: hidden;
  margin-bottom: 40px;

  &:active {
    background-color: #eee;
  }

  &:nth-child(odd) {
    margin-right: 39px;
  }

  image {
    height: 200px;
    width: 100%;
    background: url('../../assets/image/placeholder.jpg') no-repeat center center / 100% auto;
  }

  .name {
    margin-top: 20rpx;
    font-size: 30rpx;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin: 20px;
  }
}
